﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;

namespace Defero.Model
{
    public class CustomerConfiguration : EntityConfiguration<Customer>
    {
        public CustomerConfiguration() 
        {
            Property(e => e.Id);
            Relationship(e => e.Person);
            Relationship(e => e.Sales)
                .FromProperty(e => e.Customer)
                .IsOptional();
        }
    }
}
